package com.yugao.fintech.draper.auth.api;

import com.yugao.fintech.draper.auth.dto.LoginLogDTO;
import com.yugao.fintech.draper.common.constant.ServerConstant;
import com.yugao.fintech.draper.core.constant.SecurityConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "logFeignApi", value = ServerConstant.DRAPER_ADMIN)
public interface LogFeignApi {

	/**
	 * 日志保存
	 */
	@PostMapping(value = "/operLog/add", headers = SecurityConstants.HEADER_INNER)
	void add(@RequestBody LoginLogDTO loginLogDTO);

}
